<template>
  <div>
    <a-modal title="自定义渲染内容模版" v-model="visible" @ok="ok" @cancel="cancel">
      测试内容
    </a-modal>
  </div>
</template>

<script>

export default {
  inject: ["getOptions", "getParams"],
  data() {
    return {
      visible: true,
    }
  },
  methods:{
    changeVisible(val) {
      this.visible = val;
    },
    ok() {
      this.changeVisible(false);
      this.$emit("ok");
    },
    cancel() {
      this.changeVisible(false);
      this.$emit("cancel");
    }
  },
  mounted() {
    const option = this.getOptions();
    // console.log(option);
  }

}

</script>

<style lang="scss" scoped></style>